<style>
.ui-combobox {
      position: relative;
      display: inline-block;
      margin-bottom: 10px;
}
.ui-button-icon-only {
      position: absolute;
      top: 0;
      bottom: 0;
      margin-left: -1px;
      padding: 0;
      /* adjust styles for IE 6/7 */
      *height: 1.7em;
      *top: 0.1em;
}
.ui-autocomplete-input {
      margin: 0;
      padding: 0.3em;
}
</style>
      <div class="adminrectangle"><h2><?php echo $title;?></h2></div>
      <div class="grid_12">
            <h5><?php echo lang('edit_rider');?></h5>
      </div>
	<div class='clear'></div>
      <?php if(isset($message))
      {
      ?>
      <div id="infoMessage"><?php echo $message;?></div>
      <?php
      }
      ?>
      <?php
      if(isset($help_message_text))
      {
        if($help_message_text !="")
        {
      ?>
          <div id="helpMessage" title="<?php echo lang($help_message_title);?>"><?php echo lang($help_message_text);?></div>
      <?php
        }
      }
      ?>      
	<div class="grid_12">
            <?php echo form_open("admin/edit_rider/".$rider->rider_id, "name='formname'");?>
            
                  <div class="label"><?php echo lang('number');?>:</div>
                  <div class='clear'></div>
                  <div><?php echo form_input($number);?></div>
                  <div class='clear'></div>

                  <div class="label"><?php echo lang('name');?>:</div>
                  <div class='clear'></div>
                  <div><?php echo form_input($last_name);?></div>
                  <div class='clear'></div>
                  
                  <div class="label"><?php echo lang('first_name');?>:</div>
                  <div class='clear'></div>
                  <div><?php echo form_input($first_name);?></div>
                  <div class='clear'></div>

                  <div class="label"><?php echo lang('starter');?>:</div>
                  <div class='clear'></div>
                  <div><?php echo form_checkbox($starter);?></div>
                  <div class='clear'></div>

                  <div class="label"><?php echo lang('active');?>:</div>
                  <div class='clear'></div>
                  <div><?php echo form_checkbox($active);?></div>
                  <div class='clear'></div>

                  <div class="label"><?php echo lang('country');?>:</div>
                  <div class='clear'></div>
                  <div><?php echo form_input($country);?></div>
                  <div class='clear'></div>

                  <div class="label"><?php echo lang('rider_type');?>:</div>
                  <div class='clear'></div>
                  <div><?php echo form_dropdown('type_id', $rider_type_options, $rider->type_id, 'class="ui-widget combobox"');?></div>
                  <div class='clear'></div>

                  <div class="label"><?php echo lang('team');?>:</div>
                  <div class='clear'></div>
                  <div><?php echo form_dropdown('team_number', $team_options, $rider->team_number, 'class="ui-widget combobox"');?></div>
                  <div class='clear'></div>

		    <button type="submit" class="button"><span class="icon icon6"></span><span class='label'>Save</span></button>
				  <?php echo anchor("admin/riders","<span class='icon icon7'></span><span class='label'>".lang('cancel')."</span>","class='button'");?>
            <?php echo form_close();?>
      </div>
      <script src="<?php echo base_url();?>assets/js/jquery.ui.combobox.js"></script>
      <script>
            $(function() {
            $( ".combobox" ).combobox();
            });
      </script>
